//
// Created by changlei on 2022/4/2.
//

import Foundation


/// 电影类型
enum MovieType: Int, CaseIterable {
    case scenario = 11
    case comedy = 24
    case action = 5
    case affection = 13
    case scienceFiction = 17
    case animation = 25
    case suspense = 10
    case thriller = 19
    case terrifying = 20
    case documentary = 1
    case shortFilm = 23
    case erotic = 6
    case sameSex = 26
    case music = 14
    case dance = 7
    case family = 28
    case children = 8
    case biography = 2
    case history = 4
    case war = 22
    case crime = 3
    case west = 27
    case fantasy = 16
    case adventure = 15
    case disaster = 12
    case martialArts = 29
    case costume = 30
    case motion = 18
    case blackMovie = 31

    var name: String {
        switch self {
        case .scenario: return "剧情"
        case .comedy: return "喜剧"
        case .action: return "动作"
        case .affection: return "爱情"
        case .scienceFiction: return "科幻"
        case .animation: return "动画"
        case .suspense: return "悬疑"
        case .thriller: return "惊悚"
        case .terrifying: return "恐怖"
        case .documentary: return "纪录片"
        case .shortFilm: return "短片"
        case .erotic: return "情色"
        case .sameSex: return "同性"
        case .music: return "音乐"
        case .dance: return "歌舞"
        case .family: return "家庭"
        case .children: return "儿童"
        case .biography: return "传记"
        case .history: return "历史"
        case .war: return "战争"
        case .crime: return "犯罪"
        case .west: return "西部"
        case .fantasy: return "奇幻"
        case .adventure: return "冒险"
        case .disaster: return "灾难"
        case .martialArts: return "武侠"
        case .costume: return "古装"
        case .motion: return "运动"
        case .blackMovie: return "黑色电影"
        }
    }
}